import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:tiktokadult/hj_utils/screen.dart';

import 'comment_views.dart';

Future showCommentDialog(
  String objId, {
  String objType = "video",
}) async {
  return Get.bottomSheet(
    Container(
      alignment: Alignment.topLeft,
      height: screen.screenHeight * 0.75,
      decoration: BoxDecoration(
        color: Color(0xff141414),
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(20),
          topRight: Radius.circular(20),
        ),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            height: 42,
            alignment: Alignment.center,
            child: Container(
              width: 36,
              height: 5,
              decoration: BoxDecoration(
                color: Colors.white.withOpacity(0.1),
                borderRadius: BorderRadius.circular(3),
              ),
            ),
          ),
          Container(
            padding: EdgeInsets.only(left: 16, bottom: 16),
            child: Text(
              "精彩评论",
              style: TextStyle(
                color: Colors.white,
                fontWeight: FontWeight.w500,
                fontSize: 16,
              ),
            ),
          ),
          Expanded(
            child: CommentView(objId, objType: objType),
          ),
        ],
      ),
    ),
    isScrollControlled: true,
    elevation: 0.72,
  );
}
